/*
 * Copyright (C) 2011 CrystalRange
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.crystalrange;

import org.crystalrange.service.MenuFolderService;
import org.crystalrange.service.MenuItemService;

public class MenuItemNode extends MenuTreeNode {

    private Long id = null;
    private String code = "";
    private String name = "";
    private String description = "";
    private String location = "";
    private MenuFolderService menuFolderService;
    private MenuItemService menuItemService;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return this.code;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return this.description;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getLocation() {
        return this.location;
    }

    public MenuFolderService getMenuFolderService() {
        return this.menuFolderService;
    }

    public void setMenuFolderService(MenuFolderService menuFolderService) {
        this.menuFolderService = menuFolderService;
    }

    public MenuItemService getMenuItemService() {
        return this.menuItemService;
    }

    public void setMenuItemService(MenuItemService menuItemService) {
        this.menuItemService = menuItemService;
    }

    @Override
    public void readChildren() {
    }

    @Override
    public boolean isLeaf() {
        return true;
    }
}